function ok()
{
	var eamineeId = document.getElementById("eamineeId").value;
	
		
		passByValue(eamineeId)}
	


function passByValue(eamineeId)
{
	$.ajax({
		type:'GET',
		cache:false,
		url:rootPath+"/selectTicket",
		async:true,
		data:{
			eamineeId:eamineeId
		},
		success:function(result)
		{
			
			if(result.code == 100)
			{
				window.sessionStorage.setItem("eamineeId",result.extend.Ticket[0].eamineeId);
				window.location.href = "admissionTicket.html";
			}
			else
			{
				alert(result.extend.code);
			}
		}
	});
}

function resetValue()
{
	document.getElementById("eamineeId").value = "";
}